<template>
  <div class="analysis">
    <el-tabs v-model="activeName">
      <el-tab-pane name="1" label="数据概况">
        <survey />
      </el-tab-pane>
      <el-tab-pane name="2" label="流量分析">
        <flow />
      </el-tab-pane>
      <el-tab-pane name="3" label="交易分析">
        <deal />
      </el-tab-pane>
      <el-tab-pane name="4" label="商品分析">
        <articleView />
      </el-tab-pane>
      <el-tab-pane name="5" label="用户分析">
        <user />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import survey from './components/analysis/survey'
import flow from './components/analysis/flow'
import deal from './components/analysis/deal'
import articleView from './components/analysis/article'
import user from './components/analysis/user'
export default {
  components: {
    survey,
    flow,
    deal,
    articleView,
    user
  },
  data() {
    return {
      activeName: '1'
    }
  }
}
</script>

<style lang="scss">
.analysis {
  padding: 10px 20px;
  .f12 {
    font-size: 12px;
  }
  .f14 {
    font-size: 14px;
  }
  .f16 {
    font-size: 16px;
  }
  p {
    margin: 0;
    padding: 0;
  }
  .class-nav {
    position: relative;
    padding: 10px;
    width: 100%;
    min-height: 40px;
    background-color: #f8f8f8;
    .class-title {
      position: absolute;
      left: 10;
      top: 50%;
      transform: translateY(-50%);
      padding-left: 7px;
      font-size: 16px;
      color: #353535;
      line-height: 20px;
    }
    .class-title::before {
      position: absolute;
      top: 50%;
      left: 0px;
      transform: translateY(-50%);
      margin-right: 5px;
      content: '';
      display: inline-block;
      height: 14px;
      width: 2px;
      background-color: #2a75ed;
    }
    .class-slot {
      float: right;
      .theExport {
        color: #2a75ed;
        display: inline-block;
        margin-left: 10px;
        cursor: pointer;
      }
    }
  }
  .clearfix {
    display: block;
  }
  .top-show-div {
    display: flex;
    color: #666;
    .top-show-box {
      margin: 20px 0;
      .top-show-hint {
        font-size: 12px;
      }
      .top-show-money {
        margin-top: 5px;
        color: #353535;
        font-size: 24px;
      }
    }
    .top-show-box.right {
      margin-left: auto;
    }
  }
}
</style>
